package com.migu.spms.dao.entity;

import java.util.Date;

import com.migu.spms.common.TimeTool;

import lombok.Data;

/**
 * 流程流向对象
 * @author yangq
 *
 */
@Data
public class FlowDO {
	public static final String FLOW_IN = "in";
	public static final String FLOW_OUT = "out";
	private String id;
	private String flowId;
	private String flowName;
	private String sourceRef;
	private String targetRef;
	private String conditionExpression;
	private String skipExpression;
	private String processName;
	private Integer processVersion;
	private String type;	// in表示来源，out表示去向
	private String processId;
	private String processKey;
	private String taskKey;
	private String taskType;
	private String createTime;
	private String documentation;
	public FlowDO(){}
	public FlowDO(String flowId, String name, String sourceRef, String targetRef,
			String conditionExpression, String skipExpression, String type,
			String processDefinitionId, String processDefinitionKey, String taskKey, String taskType,
	        String processName,Integer processVersion,String documentation) {
		this.createTime = TimeTool.DateToString(new Date());
		this.flowId = flowId;
		this.flowName = name;
		this.sourceRef = sourceRef;
		this.targetRef = targetRef;
		this.conditionExpression = conditionExpression;
		this.skipExpression = skipExpression;
		this.type = type;
		this.processId = processDefinitionId;
		this.processKey = processDefinitionKey;
		this.taskKey = taskKey;
		this.taskType = taskType;
		this.processName = processName;
		this.processVersion = processVersion;
		this.documentation = documentation;
	}
}
